package www.woniuxy.com.class112.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import www.woniuxy.com.class112.entity.KnowledgeCategories;
import www.woniuxy.com.class112.service.KnowledgeBaseTypeService;
import www.woniuxy.com.class112.util.Result;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/knowledgeBaseType")
@Api(tags = "知识库分类相关接口")
public class KnowledgeBaseTypeController {
    @Resource
    private KnowledgeBaseTypeService knowledgeBaseTypeService;
    @GetMapping("/KnowledgeClassificationfdAll")
    @ApiOperation("查询所有知识库分类")
    public Result KnowledgeClassificationfdAll() throws Exception {
        List<KnowledgeCategories> list =knowledgeBaseTypeService.KnowledgeClassificationfdAll();
        return  Result.success("查询所有知识库分类",list);
    }
}
